Skip to content

Conversation

pguyot
Copy link
Collaborator

@pguyot pguyot commented Oct 5, 2025

No description provided.

Copy link
Collaborator

@UncleGrumpy UncleGrumpy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We definitely need to add the new options to print_help/0 in packbeam.erl.

deduplicate([H | T]) ->
[H | [X || X <- deduplicate(T), X /= H]].

filter_jit(Files0, undefined, generic_unix) ->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whether or not we use emu as the default non jit arch I think we should also match undefined too and the third parameter should match to anything (for either undefined or emu), since the emulated code can be run on any platform and some user or even another application using the API might pass a different "platform" here, which should be allowed.

application_module => undefined,
include_lines => true
include_lines => true,
arch => undefined,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was going to make the arch parameter pass though all of the atomvm_rebar3_plugin tasks, so the default (non-jit) arch will be emu for the standard emulated VM. It will simplify integration if we use emu here as the default if no native arch target is supplied.

parse_args(T, {Opts#{format => Format}, Args});
parse_args(["--arch", Arch | T], {Opts, Args}) ->
parse_args(T, {Opts#{arch => list_to_atom(Arch)}, Args});
parse_args(["--platform", Platform | T], {Opts, Args}) ->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need to add these parameters to the print_help() function in packbeam.erl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants